package nid.gallery.view 
{
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author Nidin P Vinayakan
	 */
	public class InfoView extends Sprite 
	{
		private var info_txt:TextField;
		private var bg:Shape;
		
		public function set text(value:String):void
		{
			info_txt.htmlText = value;
		}
		
		public function InfoView() 
		{
			configUI();
		}
		
		private function configUI():void 
		{
			bg = new Shape();
			bg.graphics.beginFill(0x000000,0.75);
			bg.graphics.drawRect(0, 0, 100, 60);
			bg.graphics.endFill();
			addChild(bg);
			
			info_txt = new TextField();
			info_txt.selectable = false;
			info_txt.defaultTextFormat = new TextFormat("Tahoma", 12, 0xffffff);
			info_txt.width = 90;
			info_txt.height = 50;
			info_txt.x = 0;
			info_txt.y = 5;
			addChild(info_txt);
			
			info_txt.text = "info_txt text";
		}
		
	}

}